home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
unix
/
ch13
/
13fig12.wrl
< prev
next >
Wrap
Text File
|
1996-09-22
|
688b
|
40 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Shape {
appearance Appearance {
material Material { }
}
geometry IndexedFaceSet {
coord Coordinate {
point [
# Coordinates around the top of the cube
-1.0 1.0 1.0,
1.0 1.0 1.0,
1.0 1.0 -1.0,
-1.0 1.0 -1.0,
# Coordinates around the bottom of the cube
-1.0 -1.0 1.0,
1.0 -1.0 1.0,
1.0 -1.0 -1.0,
-1.0 -1.0 -1.0
]
}
coordIndex [
# top
0, 1, 2, 3, -1,
# bottom
7, 6, 5, 4, -1,
# front
0, 4, 5, 1, -1,
# right
1, 5, 6, 2, -1,
# back
2, 6, 7, 3, -1,
# left
3, 7, 4, 0
]
}
}